import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/sys/login',
    method: 'post',
    data
  })
}
export function getuserInfo() {
  return request({
    url: '/sys/profile',
    method: 'post'
  })
}
// 获取员工基础信息
export function getuserInfoById(id) {
  return request({
    url: `/sys/user/${id}`
  })
}

// 给员工添加角色
export function adduserInfo(data) {
  return request({
    url: `/sys/user/assignRoles`,
    method: 'put',
    data
  })
}

